<?php
class Diagnoza_model extends CI_Model {

	
	function zmena_diagnozy($slug, $diagnoza) {
		$data = array(
                'Diagnoza' => $diagnoza
             );

          $this->db->where('Pacient.Rodne_cislo', $slug);
          $this->db->update('Pacient', $data);
	}
}